namespace TripleA.Core.Handlers
{
    using System.Collections.Generic;
    using System.Net;
    using Interfaces;

    /// <summary>
    /// This will round trip the cookies already loaded into the web context,
    /// this should be used when you chain calls back to the same site.
    /// </summary>
    public class DefaultCookieHandler
    {
        public static IEnumerable<Cookie> Handle(IWebContext context)
        {
            return context.Response == null ? null : 
                context.Response.Cookies;
        }
    }
}